# Contributor: Anjandev Momi <anjan@momi.ca>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=limnoria
pkgver=20220927
_pkgver=2022-09-27
pkgrel=3
pkgdesc="A robust, full-featured, and user/programmer-friendly Python IRC bot, with many existing plugins"
url="https://limnoria.net/"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-cryptography"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-mock"
subpackages="$pkgname-doc $pkgname-pyc"
source="https://github.com/progval/Limnoria/archive/refs/tags/master-$_pkgver.tar.gz"
builddir="$srcdir/Limnoria-master-$_pkgver"
options="!check" # check requires installing limnoria before testing
# https://github.com/progval/Limnoria/blob/master/.github/workflows/test.yml

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
9e8d57c34d1ff23e1772be618d9f9a8fae909200d3002ea97a95a5ba6545781d68194c4c796fa7f8683a0f3a267566ade01dd74f26110e7e0febef8ff739d88a  master-2022-09-27.tar.gz
"
